package com.fanxuankai.boot.mqbroker.consumer;

/**
 * 事件监听者 Bean
 *
 * @author fanxuankai
 */
public class EventListenerBean {

    private final String topic;
    private final EventListener<?> eventListener;

    public EventListenerBean(String topic, EventListener<?> eventListener) {
        this.topic = topic;
        this.eventListener = eventListener;
    }

    /**
     * topic
     *
     * @return String
     */
    public String getTopic() {
        return topic;
    }

    /**
     * 事件监听者
     *
     * @return EventListener
     */
    public EventListener<?> getEventListener() {
        return eventListener;
    }
}
